{% set _pageRoute = '/_mder/manager' %}

{% extends "_layouts/2column.twig" %}

{% block style %}
{% endblock %}

{% block sidebar %}
  {% include 'mder/manager/_sidebar.twig' %}
{% endblock %}

{% block body %}
<h2>Project list</h2>
{#{{ dump(_globals.lang.tran('app:test')) }}#}
<div class="row">

  {% for item,options in items %}
    <div class="col-xs-6 col-sm-4 col-md-3">
      <div class="thumbnail">
        {% if options.coverImage is defined %}
          <img src="{{ options.coverImage }}" style="height: 200px; width: 100%; display: block;">
        {% else %}
        <img data-src="holder.js/100%x200" alt="100%x200" style="height: 200px; width: 100%; display: block;" src="" data-holder-rendered="true">
        {% endif %}
        <div class="caption">
          <h3>{{ item }}</h3>
          <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
          <p>
            {% if options.defaultPage is defined %}
              <a href="{{ item }}/{{ options.defaultPage }}" class="btn btn-primary" role="button">View</a>
            {% else %}
              <a href="{{ item }}" class="btn btn-primary" role="button">View</a>
            {% endif %}
          </p>
        </div>
      </div>
    </div>
  {% endfor %}

</div>

{% endblock %}

